package com.zzs.client.pojo.dto.user;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zzs
 * @date 2025/03/27
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class UpdateInfoDTO {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 4, max = 20, message = "用户名长度在4到20之间")
    @Pattern(regexp = "^[a-zA-Z0-9]+$", message = "用户名只能包含大小写字母和数字")
    private String username;
}
